package edu.stanford.hardon.Media;

import java.util.Date;

import android.os.Bundle;

public class RichMedia extends Media {
	
	private String path;
	
	public RichMedia() {
		
	}
	
	public RichMedia(Long dbID, Long tripID, MediaType type, Double lat, Double lng, Double alt, Date timeCaptured, Date timeUploaded, Long parentID, String path) {
		super(dbID, tripID, type, lat, lng, alt, timeCaptured, timeUploaded, parentID);
		this.path = path;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
	public Bundle serialize(){
		Bundle b = super.serialize();
		
		b.putString("type", String.valueOf(this.type.ordinal()));
		b.putString("path", this.path);
		
		return b;
	}
	
}